package com.project.lk.nurseapp.doctor;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

import com.project.lk.nurseapp.R;
import com.project.lk.nurseapp.base.BaseActivity;
import com.project.lk.nurseapp.base.UrlContants;
import com.project.lk.nurseapp.doctor.presenter.DoctorDetailsPresenter;
import com.project.lk.nurseapp.doctor.presenter.IDoctorDetailsView;
import com.project.lk.nurseapp.utils.AppManager;

import butterknife.BindView;
import butterknife.OnClick;
/**
 * 功能介绍：
 * 项目名：
 * 模块名称：
 * 作者：LK
 * 日期：2018/1/9
 * 修改日期：
 */
public class DoctorDetailsActivity extends BaseActivity implements IDoctorDetailsView{

    @BindView(R.id.msg_title)
    TextView msgTitle;
    @BindView(R.id.msg_time)
    TextView msgTime;
    @BindView(R.id.msg_context)
    TextView msgContext;
    private String sessionId;
    private DoctorDetailsPresenter presenter;

    @Override
    protected void initData() {
        sessionId = getIntent().getStringExtra("sessionId");
        presenter = new DoctorDetailsPresenter(this);
        presenter.loadDetails(UrlContants.LOOK_DOCTOR_ADVICE_URL,sessionId);
    }

    @Override
    protected void initView() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_doctor_details;
    }
    @OnClick(R.id.back)
    public void onViewClicked() {
        AppManager.getAppManager().finishActivity();
    }

    @Override
    public void returnSuccess() {

    }

    @Override
    public void fail() {

    }
}
